package com.tz.util;

import com.tz.WebAppConfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created by Administrator on 2016/7/25.
 */
public class AcUtil {

    static{

        ac = new AnnotationConfigApplicationContext(WebAppConfig.class);

    }

    private static ApplicationContext ac;

    public static ApplicationContext getAc(){
        return ac;
    }
}
